package com.bitin.module.project.domain.enumeration;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;

import static com.fasterxml.jackson.annotation.JsonFormat.Shape.OBJECT;

/**
 * @author Mr.Lu
 * @since 2024/8/26 13:53
 */
@Getter
@JsonFormat( shape = OBJECT )
public enum PaymentState {
    PENDING( "待审批" ),
    APPROVED( "已批准" ),
    REJECTED( "已拒绝" ),
    PAID( "已支付" ),
    UNPAID( "已失败" ),
    ;
    private final String display;
    private final String value = name( );

    PaymentState( String display ) {
        this.display = display;
    }
}
